/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2023. All rights reserved.
 * Description: UDK malloc header file
 * Author: -
 * Create: 2021.4.19
 */

#ifndef UDK_MALLOC_H
#define UDK_MALLOC_H

#include <stdint.h>

void udk_free(void *addr);

void *udk_malloc_socket(size_t size, uint32_t align, int socket_arg);
void *udk_malloc(size_t size, uint32_t align);

void *udk_zmalloc_socket(size_t size, uint32_t align, int socket);
void *udk_zmalloc(size_t size, uint32_t align);

int udk_malloc_heap_socket_is_external(int socket_id);
#endif